<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.io.IOException"%>
<%@page import="java.net.MalformedURLException"%>
<%@page import="java.io.BufferedReader"%>
<%@page import="java.io.InputStreamReader"%>
<%@page import="java.net.URL"%>
<%@page import="java.io.InputStream"%>
<%@page import="java.net.URLConnection"%>
<%@page import="comm.util.SoptHashMap"%>
<%@page import="comm.util.RequestManager"%>
<%@page import="java.net.URLEncoder"%>

<%@page import="org.json.JSONArray"%>
<%@page import="org.json.JSONObject"%>
<%@page import="statics.SoptVars"%>
<%@page import="com.sun.syndication.io.SyndFeedInput"%>
<%@page import="com.sun.syndication.feed.synd.SyndFeed"%>
<%@page import="com.sun.syndication.io.XmlReader"%>
<%@page import="java.util.List"%>
<%@page import="com.sun.syndication.feed.synd.SyndEntry"%>
<%@page import="com.sun.syndication.io.FeedException"%>
<%

URL url;//URL 주소 객체
URLConnection connection;//URL접속을 가지는 객체
InputStream is;//URL접속에서 내용을 읽기위한 Stream
InputStreamReader isr;
BufferedReader br;
String result = "";

try{
	String urlStr = "http://miboard.miclub.com/Board.mi?articleId=35237527&boardId=4001&cmd=view_article&frameYn=&pagingType=&viewType=";
    //URL객체를 생성하고 해당 URL로 접속한다..
    url = new URL(urlStr);
    connection = url.openConnection();

    //내용을 읽어오기위한 InputStream객체를 생성한다..
    is = connection.getInputStream();
    isr = new InputStreamReader(is);
    br = new BufferedReader(isr);

    //내용을 읽어서 화면에 출력한다..
    String buf = null;
    result = "";
    while(true){
        buf = br.readLine();
        if(buf!=null)result+=buf;
        else break;
        System.out.println(buf);
    }
}catch(MalformedURLException mue){
    System.err.println("잘못되 URL입니다. 사용법 : java URLConn http://hostname/path]");
    System.exit(1);
}catch(IOException ioe){
    System.err.println("IOException " + ioe);
    ioe.printStackTrace();
    System.exit(1);
}
	
%>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="java.nio.charset.Charset"%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%=result %>
</body>
</html>